package cn.tedu.antcolony.passport.security.iml;


import cn.tedu.antcolony.passport.mapper.PermissionMapper;
import cn.tedu.antcolony.passport.service.IPermissionService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 权限实现类
 */
@Service
@Slf4j
public class PermissionImpl implements IPermissionService {

    @Resource
    private PermissionMapper permissionMapper;

    @Override
    public List<String> getPermissionsByUserId(Long id) {
        List<String> permissionsByUserId = permissionMapper.getPermissionsByUserId(id);
        return permissionsByUserId;
    }
}
